package com.zheng.wechat.mp.dao.model;

import java.io.Serializable;
import java.util.Date;

public class WechatMpActShaketicketRecord implements Serializable {
    /**
     * ID
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 活动ID
     *
     * @mbg.generated
     */
    private String actId;

    /**
     * 奖品ID
     *
     * @mbg.generated
     */
    private String awardId;

    /**
     * 抽奖人openid
     *
     * @mbg.generated
     */
    private String openid;

    /**
     * 抽奖序号
     *
     * @mbg.generated
     */
    private Integer awardsSeq;

    /**
     * 抽奖状态 0 未中奖 1已中奖
     *
     * @mbg.generated
     */
    private String drawStatus;

    /**
     * 领取状态 0 未领取 1已领取
     *
     * @mbg.generated
     */
    private String receiveStatus;

    /**
     * 抽奖时间
     *
     * @mbg.generated
     */
    private Date drawTime;

    /**
     * 领取时间
     *
     * @mbg.generated
     */
    private Date receiveTime;

    /**
     * 公众号原始ID
     *
     * @mbg.generated
     */
    private String jwid;

    /**
     * 奖品券码
     *
     * @mbg.generated
     */
    private String cardPsd;

    /**
     * 领奖人手机号
     *
     * @mbg.generated
     */
    private String mobile;

    /**
     * 领奖人手机号
     *
     * @mbg.generated
     */
    private String address;

    /**
     * 领奖人姓名
     *
     * @mbg.generated
     */
    private String relName;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getActId() {
        return actId;
    }

    public void setActId(String actId) {
        this.actId = actId;
    }

    public String getAwardId() {
        return awardId;
    }

    public void setAwardId(String awardId) {
        this.awardId = awardId;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public Integer getAwardsSeq() {
        return awardsSeq;
    }

    public void setAwardsSeq(Integer awardsSeq) {
        this.awardsSeq = awardsSeq;
    }

    public String getDrawStatus() {
        return drawStatus;
    }

    public void setDrawStatus(String drawStatus) {
        this.drawStatus = drawStatus;
    }

    public String getReceiveStatus() {
        return receiveStatus;
    }

    public void setReceiveStatus(String receiveStatus) {
        this.receiveStatus = receiveStatus;
    }

    public Date getDrawTime() {
        return drawTime;
    }

    public void setDrawTime(Date drawTime) {
        this.drawTime = drawTime;
    }

    public Date getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(Date receiveTime) {
        this.receiveTime = receiveTime;
    }

    public String getJwid() {
        return jwid;
    }

    public void setJwid(String jwid) {
        this.jwid = jwid;
    }

    public String getCardPsd() {
        return cardPsd;
    }

    public void setCardPsd(String cardPsd) {
        this.cardPsd = cardPsd;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getRelName() {
        return relName;
    }

    public void setRelName(String relName) {
        this.relName = relName;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", actId=").append(actId);
        sb.append(", awardId=").append(awardId);
        sb.append(", openid=").append(openid);
        sb.append(", awardsSeq=").append(awardsSeq);
        sb.append(", drawStatus=").append(drawStatus);
        sb.append(", receiveStatus=").append(receiveStatus);
        sb.append(", drawTime=").append(drawTime);
        sb.append(", receiveTime=").append(receiveTime);
        sb.append(", jwid=").append(jwid);
        sb.append(", cardPsd=").append(cardPsd);
        sb.append(", mobile=").append(mobile);
        sb.append(", address=").append(address);
        sb.append(", relName=").append(relName);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WechatMpActShaketicketRecord other = (WechatMpActShaketicketRecord) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getActId() == null ? other.getActId() == null : this.getActId().equals(other.getActId()))
            && (this.getAwardId() == null ? other.getAwardId() == null : this.getAwardId().equals(other.getAwardId()))
            && (this.getOpenid() == null ? other.getOpenid() == null : this.getOpenid().equals(other.getOpenid()))
            && (this.getAwardsSeq() == null ? other.getAwardsSeq() == null : this.getAwardsSeq().equals(other.getAwardsSeq()))
            && (this.getDrawStatus() == null ? other.getDrawStatus() == null : this.getDrawStatus().equals(other.getDrawStatus()))
            && (this.getReceiveStatus() == null ? other.getReceiveStatus() == null : this.getReceiveStatus().equals(other.getReceiveStatus()))
            && (this.getDrawTime() == null ? other.getDrawTime() == null : this.getDrawTime().equals(other.getDrawTime()))
            && (this.getReceiveTime() == null ? other.getReceiveTime() == null : this.getReceiveTime().equals(other.getReceiveTime()))
            && (this.getJwid() == null ? other.getJwid() == null : this.getJwid().equals(other.getJwid()))
            && (this.getCardPsd() == null ? other.getCardPsd() == null : this.getCardPsd().equals(other.getCardPsd()))
            && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getRelName() == null ? other.getRelName() == null : this.getRelName().equals(other.getRelName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getActId() == null) ? 0 : getActId().hashCode());
        result = prime * result + ((getAwardId() == null) ? 0 : getAwardId().hashCode());
        result = prime * result + ((getOpenid() == null) ? 0 : getOpenid().hashCode());
        result = prime * result + ((getAwardsSeq() == null) ? 0 : getAwardsSeq().hashCode());
        result = prime * result + ((getDrawStatus() == null) ? 0 : getDrawStatus().hashCode());
        result = prime * result + ((getReceiveStatus() == null) ? 0 : getReceiveStatus().hashCode());
        result = prime * result + ((getDrawTime() == null) ? 0 : getDrawTime().hashCode());
        result = prime * result + ((getReceiveTime() == null) ? 0 : getReceiveTime().hashCode());
        result = prime * result + ((getJwid() == null) ? 0 : getJwid().hashCode());
        result = prime * result + ((getCardPsd() == null) ? 0 : getCardPsd().hashCode());
        result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getRelName() == null) ? 0 : getRelName().hashCode());
        return result;
    }
}